package com.barradata.common.rxbinding

import android.view.View
import com.barradata.common.rxbinding.click.ViewClickOnSubscribe
import io.reactivex.Observable
import java.util.concurrent.TimeUnit


/**
 * Author:    WuNan
 * Email:     wunan@barradata.com
 * Created:   2019/7/4 14:39
 **/


fun View.clickV(): Observable<View> {
    return Observable.create(ViewClickOnSubscribe(this)).throttleFirst(500, TimeUnit.MILLISECONDS)
}